package main

import (
	"gftest/boot"
	controllers "gftest/controller"
	"gftest/middleware"
)

func main() {
	boot.Fighting().
		Attach(middleware.NewAuthMiddleware()).
		Action("/v1", controllers.NewIndexController()).
		Start()
}

/*func main() {
	s := g.Server()

	s.SetIndexFolder(true)
	s.SetServerRoot("E:\\gocode\\src\\gfapi\\test")

	s.BindHandler("/", func(r *ghttp.Request) {
		r.Response.Write("哈喽世界！")
	})

	s.BindHandler("/{class}-{course}/:name/*act", func(r *ghttp.Request) {
		r.Response.Writef(
			"%v %v %v %v",
			r.Get("class"),
			r.Get("course"),
			r.Get("name"),
			r.Get("act"),
		)
	})


	//s.SetPort(1023, 1032, 1322, 1233)
	s.Run()
}*/
